# Contributor: Anjandev Momi <anjan@momi.ca>
# Maintainer: Anjandev Momi <anjan@momi.ca>
pkgname=trash-cli
pkgver=0.22.4.16
pkgrel=0
pkgdesc="Command line interface to the freedesktop.org trashcan"
url="https://github.com/andreafrancia/trash-cli"
arch="noarch"
license="GPL-2.0-or-later"
depends="python3 py3-psutil"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-pytest-mock"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/andreafrancia/trash-cli/archive/refs/tags/$pkgver.tar.gz"

build() {
	python3 setup.py build
}

check() {
	pytest -v
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
961e87ec361c405a45d02e6a4b7bf43493bca86cf3540a7235df459abd450762bcea4760acdfed0e5f276933ff0eb5b9f426ae0eecfde3e5830a8699fa99a19f  trash-cli-0.22.4.16.tar.gz
"
